<?php

namespace easydis\APSBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;

/**
 * GroupeService
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="easydis\APSBundle\EntityRepository\GroupeServiceRepository")
 */
class GroupeService
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="lib", type="string", length=150)
     */
    private $lib;

    /**
     * @var integer
     *
     * @ORM\Column(name="numTri", type="integer")
     */
    private $numTri;

    /**
     * @ORM\ManyToOne(targetEntity="easydis\APSBundle\Entity\Exploitation")
     * @ORM\JoinColumn(nullable=false)
     */
    private $exploit;
    
    /**
     * @ORM\ManyToOne(targetEntity="easydis\APSBundle\Entity\TypeGroupeService")
     * @ORM\JoinColumn(nullable=true)
     */
    private $type;
    
    /**
      * Set exploit
      *
      * @param easydis\APSBundle\Entity\Exploitation $exploit
      */
    public function setExploit(\easydis\APSBundle\Entity\Exploitation $exploit)
    {
            $this->exploit = $exploit;
    }

    /**
      * Get exploit
      *
      * @return easydis\APSBundle\Entity\Exploitation 
      */
    public function getExploit()
    {
            return $this->exploit;
    }
    
    /**
      * Set type
      *
      * @param easydis\APSBundle\Entity\TypeGroupeService $type
      */
    public function setType($type)
    {
            $this->type = $type;
    }

    /**
      * Get type
      *
      * @return easydis\APSBundle\Entity\TypeGroupeService
      */
    public function getType()
    {
            return $this->type;
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set lib
     *
     * @param string $lib
     * @return GroupeService
     */
    public function setLib($lib)
    {
        $this->lib = $lib;
    
        return $this;
    }

    /**
     * Get lib
     *
     * @return string 
     */
    public function getLib()
    {
        return $this->lib;
    }

    /**
     * Set numTri
     *
     * @param integer $numTri
     * @return GroupeService
     */
    public function setNumTri($numTri)
    {
        $this->numTri = $numTri;
    
        return $this;
    }

    /**
     * Get numTri
     *
     * @return integer 
     */
    public function getNumTri()
    {
        return $this->numTri;
    }
}
